Conversation
added 7 commits
September 9, 2025 01:48
…반으로 Session 로직 구성" This reverts commit c9aba88.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. 모델 책임 분리: Word → Word + WordProgress
Word모델이 학습 상태까지 관리하는 것이 과도한 책임이라고 판단이 됐습니다. 그래서 데이터베이스 정규화 관점에서 단어의 고유 속성과 사용자 학습 상태를 명확히 분리했습니다.Word,WordProgress로 모델을 재구성했습니다.2. WordManager 메서드 수정
createStatesForNewWords메서드를fetchNewWords와createStates로 분리하여 각 메서드가 하나의 명확한 책임을 갖도록 개선했습니다. 이를 통해 코드의 직관성과 단일 책임 원칙을 강화했습니다.fetchData메서드로 중앙화하여 코드 중복을 제거하고 유지보수성을 향상시켰습니다.